<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./lib/react/react.development.js"></script>
    <script src="./lib/react/react-dom.development.js"></script>
    <script src="./lib/babel.min.js"></script>
    <style>
      .red {
        color: red;
      }
      .bg {
        background: #00ff00;
      }
    </style>
  </head>
  <body>
    <div id="app"></div>

    <script type="text/babel">
      class HelloWorld extends React.Component {
        render() {
          return (
            <div>
                <h2>倒计时:</h2>
                <span>{ new Date().toString() }</span>
                </div>
          );
        }
      }
      setInterval(()=> {
          ReactDOM.render(<HelloWorld />, document.getElementById("app"));
      },1000)
    </script>
  </body>
</html>
